package com.example.demo;

import android.os.Parcel;
import android.os.Parcelable;

public class TheItems implements Parcelable {
    private String tvRank;
    private int img;
    private String tvName;
    private String tvStart;
    private String tvDowloadCount;
    private String button2;

    public TheItems(String tvRank, int img, String tvName, String tvStart, String tvDowloadCount, String button2) {
        this.tvRank = tvRank;
        this.img = img;
        this.tvName = tvName;
        this.tvStart = tvStart;
        this.tvDowloadCount = tvDowloadCount;
        this.button2 = button2;
    }

    public String getTvRank() {
        return tvRank;
    }

    public void setTvRank(String tvRank) {
        this.tvRank = tvRank;
    }

    public int getImg() {
        return img;
    }

    public void setImg(int img) {
        this.img = img;
    }

    public String getTvName() {
        return tvName;
    }

    public void setTvName(String tvName) {
        this.tvName = tvName;
    }

    public String getTvStart() {
        return tvStart;
    }

    public void setTvStart(String tvStart) {
        this.tvStart = tvStart;
    }

    public String getTvDowloadCount() {
        return tvDowloadCount;
    }

    public void setTvDowloadCount(String tvDowloadCount) {
        this.tvDowloadCount = tvDowloadCount;
    }

    public String getButton2() {
        return button2;
    }

    public void setButton2(String button2) {
        this.button2 = button2;
    }

    public static Creator<TheItems> getCREATOR() {
        return CREATOR;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.tvRank);
        dest.writeInt(this.img);
        dest.writeString(this.tvName);
        dest.writeString(this.tvStart);
        dest.writeString(this.tvDowloadCount);
        dest.writeString(this.button2);
    }

    public void readFromParcel(Parcel source) {
        this.tvRank = source.readString();
        this.img = source.readInt();
        this.tvName = source.readString();
        this.tvStart = source.readString();
        this.tvDowloadCount = source.readString();
        this.button2 = source.readString();
    }

    public TheItems() {
    }

    protected TheItems(Parcel in) {
        this.tvRank = in.readString();
        this.img = in.readInt();
        this.tvName = in.readString();
        this.tvStart = in.readString();
        this.tvDowloadCount = in.readString();
        this.button2 = in.readString();
    }

    public static final Parcelable.Creator<TheItems> CREATOR = new Parcelable.Creator<TheItems>() {
        @Override
        public TheItems createFromParcel(Parcel source) {
            return new TheItems(source);
        }

        @Override
        public TheItems[] newArray(int size) {
            return new TheItems[size];
        }
    };
}
